//计算圆面积
public class FinalTest2 {
    public static void main(String[] args) {
        Circle circle=new Circle(6.5);
        System.out.println(circle.getArea());
    }
}


class Circle{
//    定义半径
    private double radius;
    private final double PI=3.14;
    public Circle(double radius){
        this.radius=radius;
    }
    public double  getArea(){
        return radius*radius*PI;
    }

}
